<template>
    <div class="name" v-if="route.params.current_point===state.msg.name.solid">
        <div class="title">
            <h3>标题</h3>
            <input type="text" v-model="state.msg.name.title">
        </div>
        <div class="descriptions">
            <h3>描述</h3>
            <input type="text" v-model="state.msg.name.description">
        </div>
    </div>
    <div class="degree" v-if="route.params.current_point===state.msg.degree.solid">
        <div class="title">
            <h3>标题</h3>
            <input type="text" v-model="state.msg.degree.title">
        </div>
        <div class="descriptions">
            <h3>描述</h3>
            <input type="text" v-model="state.msg.degree.description">
        </div>
    </div>
    <div class="native" v-if="route.params.current_point===state.msg.native.solid">
        <div class="title">
            <h3>标题</h3>
            <input type="text" v-model="state.msg.native.title">
        </div>
    </div>
    <div class="evaluate" v-if="route.params.current_point===state.msg.evaluate.solid">
        <div class="title" >
            <h3>标题</h3>
            <input type="text" v-model="state.msg.evaluate.title">
        </div>
        <div class="subject">
            <h3>题目</h3>
            <input type="text" v-model="state.type.type1">
            <input type="text" v-model="state.type.type2">
            <input type="text" v-model="state.type.type3">
        </div>
        <div class="options">
            <h3>选项</h3>
            <input type="text" v-model="state.level[1]">
            <input type="text" v-model="state.level[2]">
            <input type="text" v-model="state.level[3]">
            <input type="text" v-model="state.level[4]">
        </div>
    </div>
    <div v-else >
        <p>hdfahdka h</p>
    </div>
</template>

<script setup>
    import {useRoute} from 'vue-router'
    import {useStore} from 'vuex'
    const state = useStore().state;
    const route = useRoute()
</script>

<style scoped>
 input{
     width: 80%;
     height: 30px;
     font-size: 18px;
     margin: 5px auto;
 }
</style>